package cn.crawler.app.crown.modules.models.enums;

/**
 * 足球具体玩法枚举
 */
public enum BetsEnum {
    // 半场波胆
    HALF_PD("Half Time",1),
    // 全场波胆
    FULL_PD("Full Time",2),
    // 全场入球
    FULL_GOALS("Score",3),
    ;
    final public String NAME;
    final public int VALUE;

    BetsEnum(String name, int val) {
        NAME = name;
        VALUE = val;
    }

    public String getBetName() {
        return NAME;
    }

    public int getBetValue() {
        return VALUE;
    }

    public static String getByValue(int value) {
        for (BetsEnum betsEnum : values()) {
            if (betsEnum.getBetValue() == value) {
                return betsEnum.NAME;
            }
        }
        return null;
    }
}
